<div>
    <span class="layui-btn layui-btn-danger" onclick="modify_sms_set()">调整短信 </span>
    <span class="layui-btn">本月局长免费短信余额 <?echo $data['sms_setting']['leader_amount']-$data['sms_leader_free_used']?></span>
    <span class="layui-btn">本月局长免费短信已使用 <?echo $data['sms_leader_free_used']?></span>
    <span class="layui-btn">本月用户免费短信余额 <?echo $data['sms_setting']['member_amount']-$data['sms_member_free_used']?></span>
    <span class="layui-btn">本月用户免费短信已使用 <?echo $data['sms_member_free_used']?></span>
</div>

<hr/>

<div>
    <span class="layui-btn">充值短信余额 <?echo $data['sms_charged']-$data['sms_charged_used']?></span>
    <span class="layui-btn">充值短信已使用 <?echo $data['sms_charged_used']?></span>
    <span class="layui-btn">充值短信 <?echo $data['sms_charged']?></span>
    <span class="layui-btn">消费金额 <?echo $data['sms_charged_cost']?> </span>
    <span class="layui-btn">会员到期 <?echo $data['member']['vip_end_time']?> </span>
</div>


<table class="layui-table">
    <colgroup>
        <col >
        <col >
        <col >
        <col >
        <col >
        <col >
        <col >
        <col >
    </colgroup>
    <thead>
    <tr>
        <th>板块编号</th>
        <th>操作时间</th>
        <th>对象号码</th>
        <th>类型</th>
        <th>会员到期</th>
        <th>内容</th>
    </tr>
    </thead>
    <tbody>


    <?php
        if (count($sms_send_record) == 0)
        {
            echo "<tr><td colspan='6'>暂无数据</td></tr>";
        }
    ?>


    <?php
    foreach ($sms_send_record as $ksend=>$vsend){
        ?>

        <tr id="item<?echo $vsend['nid']?>" >
            <td><? echo $vsend['nid'];?></td>
            <td><? echo $vsend['date'];?></td>
            <td><? echo $vsend['type'];?></td>
            <td> <?echo $vsend['receiver'] ?></td>
            <td> <?echo $vsend['status'] ?></td>
            <td> <?echo $vsend['content'] ?></td>
        </tr>
        <?php

    }
    ?>
    </tbody>
</table>
